home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
prog_gen
/
psp_io.zip
/
READ.ME
< prev
Wrap
Text File
|
1994-05-29
|
4KB
|
90 lines
ABOUT THESE FILES
-----------------
The files PSP.ASM, CHARSTR.ASM, DOSIO.ASM, and MATHIO.ASM contain
general-purpose functions for use in assembly-language programs.
The program - NUMVERT.EXE - demonstrates their usage.
I wrote these 'procs' to solve a number of problems I encountered
in my own programming. So I thought that perhaps they can also be
of assistance to other assembly-language programmers; especially
beginners. You might also find the include files, MACRO.INC and
COMMON.INC helpful.
All the code is written in IDEAL mode, using Turbo Assembler v3.0.
I find it alot easier than MASM mode. I hope also that the program
NUMVERT.EXE (see below on instructions on how to use it) will be of
assistance to those seeking quick conversions between positive whole
decimal, hex and binary numbers.
Please contact me via CompuServe if you:
find the program or any of its functions useful,
have problems with using any of the functions,
find source code which can be improved or deleted,
have any criticisms about the code,
have suggestions for improvements to NUMVERT.EXE, and/or
have suggestions for other functions or programs which
other programmers or computer-users may find useful.
My CompuServe ID # is : 100236,2477
Any comments would be greatly appreciated. I hope these functions
and NUMVERT.EXE will be found useful by many. Please note that all
these file are copyright. You are welcome to copy them and pass them
on to others, provided that all copyright notices remain unchanged and
are not deleted. Hope you find them as useful as I did.
NUMVERT.EXE
-----------
NUMVERT, the number-converter, converts positive whole numbers between
decimal, hex and binary. The simplest way to use NUMVERT is to simply
type 'numvert' at the command prompt (e.g. C:\>). General instructions
for entering numbers are displayed as below:
C:\>numvert
Welcome to the Number Converter
Copyright (c) by Simon Groes, 1994
** INSTRUCTIONS **
------------------
You may type in a decimal, hexadecimal or binary number.
If you type a hexadecimal number, type an 'H' or 'h' at the end
(no spaces in between).
A hex number must be <= 16 characters long.
If you type a binary number, type a 'B' or 'b' at the end.
A binary number must be <= 16 characters long.
Do not type any letter at the end of a decimal number.
A decimal number must be between 0 & 65535.
Enter a number:
Alternatively, you may use NUMVERT with command-line parameters.
The switches /h or -h, /b or -b and /d or -d instruct the program to
convert the number to hex, binary and/or decimal respectively. You may
use one, two or all three of the switches with or without spaces
preceding them anywhere on the command line. However, there must be
at least one space preceding the number you enter, which must also have
the appropriate letter appended to it if it is not decimal.
If the number is not entered on the command-line, you will be prompted
by the the program as in the example below:
C:\>numvert/h/b
Enter a number:
If you only enter the number on the command line, NUMVERT will
display the number in decimal, hex and binary. If incorrect parameters
are entered, the statement 'Invalid parameter(s)' will be displayed,
and the program will run as if no parameters had been entered.
I hope you will find this program and these instructions useful.
Good luck with your programming.
-----------
END OF FILE